package com.east.service.impl;

import com.east.mapper.UserRoleMapper;
import com.east.service.UserRoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Resource
    private UserRoleMapper userRoleMapper;
    @Override
    public List<String> getRoleByUserId(Integer userId) {
       List<String> roles =  userRoleMapper.getRoleByUserId(userId);
        return roles;
    }
}
